package main

import (
	"fmt"
	_ "orm_gin/orm"
	"orm_gin/router"
)

// @title Swagger Api
// @version 0.0.1
// @description This is a sample Server pets
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
func main() {
	r := router.InitRouter()

	r.Static("/public", "public/")
	r.StaticFile("/", "public/index.html")

	err := r.Run("0.0.0.0:8090")

	if err != nil {
		fmt.Println("find error :", err)
	}
}
